﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EditTask.aspx.cs" Inherits="HRProject.Task.EditTask" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Edit Task</title>
    <link type="text/css" href="/css/dialog.css" />
    <link href="/css/jsDatePick_ltr.css" rel="stylesheet" type="text/css"/>
    <style type="text/css">
        .calendar
        {
        	position:absolute;
        	z-index:99;
        	background-color:#F7F9FC;
        }
    </style>
    <script type="text/javascript" language="javascript" src="/js/jquery-1.8.2.js"></script>
    <script type="text/javascript" language="javascript" src="/js/jsDatePick.min.1.3.js"></script>
    <script type="text/javascript" language="javascript">
        function initPage()
        {
            new JsDatePick({
			    useMode:2,
			    target:"tbxEstimateStartDate",
			    dateFormat:"%d/%m/%Y"
		    });
		    new JsDatePick({
			    useMode:2,
			    target:"tbxEstimateFinishDate",
			    dateFormat:"%d/%m/%Y"
		    });
		    new JsDatePick({
			    useMode:2,
			    target:"tbxRealStartDate",
			    dateFormat:"%d/%m/%Y"
		    });
		    new JsDatePick({
			    useMode:2,
			    target:"tbxRealFinishDate",
			    dateFormat:"%d/%m/%Y"
		    });
		}
    </script>
</head>
<body onload="initPage();">
    <form id="form1" runat="server">
        <table>
            <tr>
                <td>Name</td>
                <td class="detail"><asp:TextBox ID="tbxName" runat="server"></asp:TextBox></td>
            </tr>
            <tr>
                <td>Task type</td>
                <td class="detail">
                    <asp:DropDownList ID="ddlTaskType" runat="server">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>Estimate start date</td>
                <td class="detail">
                    <asp:TextBox ID="tbxEstimateStartDate" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>Estimate finish date</td>
                <td class="detail">
                    <asp:TextBox ID="tbxEstimateFinishDate" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>Real start date</td>
                <td class="detail">
                    <asp:TextBox ID="tbxRealStartDate" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>Real finish date</td>
                <td class="detail">
                    <asp:TextBox ID="tbxRealFinishDate" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>In charged agent</td>
                <td class="detail">
                    <asp:Label ID="lblInChargeAgent" runat="server" Text=""></asp:Label>
                    <asp:HiddenField ID="hdfInChargeUserId" runat="server" />
                    <br />
                    <asp:DropDownList ID="ddlDepartment" runat="server" DataTextField="Name" 
                        DataValueField="Id" onselectedindexchanged="ddlDepartment_SelectedIndexChanged" AutoPostBack="True"
                        Width="200">
                    </asp:DropDownList><br />
                    <asp:DropDownList ID="ddlRole" runat="server" DataTextField="Name" 
                        DataValueField="Id" onselectedindexchanged="ddlRole_SelectedIndexChanged" AutoPostBack="True"
                        Width="200">
                    </asp:DropDownList><br />
                    <asp:DropDownList ID="ddlUser" runat="server" DataTextField="UserName" 
                        DataValueField="ProviderUserKey" Width="200"
                        onselectedindexchanged="ddlUser_SelectedIndexChanged">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>Description</td>
                <td class="detail"><asp:TextBox ID="txaDescription" runat="server" TextMode="MultiLine"></asp:TextBox></td>
            </tr>
            <tr>
                <td></td>
                <td>
                    <asp:Button ID="btnOK" runat="server" Text="Update" onclick="btnOK_Click"/>
                    <input type="button" name="btnCancel" value="Cancel"
                        onclick="window.close();"/>
                </td>
            </tr>
            <tr>
                <td></td>
                <td><asp:Label ID="lblError" runat="server" Text="" ForeColor="Red"></asp:Label></td>
            </tr>
        </table>
    </form>
</body>
</html>
